const dbpool=require("../config/dbpoolconfig");

const contextController={
    getAllContext(req,res){
        dbpool.connect('select * from article',[],(err,data)=>{
            if(!err){
                if(data.length > 0){
                    res.send(data);
                }
            }
        })
    }
}
module.exports=contextController;